package com.hanxiaozhang.system.entity;

import com.hanxiaozhang.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;


/**
 * 部门表
 * 
 * @author hanxiaozhang
 * @email hanxiaozhang2018@sina.com
 * @date 2021-03-21
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class DeptEntity extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;

   /**
	* 部门主键
	*/
	private Long deptId;

   /**
	* 上级部门ID，一级部门为0
	*/
	private Long parentId;

   /**
	* 部门名称
	*/
	private String deptName;

   /**
	* 排序
	*/
	private Integer deptOrder;

   /**
	* 子部门数目
	*/
	private Integer subCount;

   /**
	* 状态 0:禁用，1:正常
	*/
	private Integer status;


}
